﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace QuestionsAnswers.UI.Models
{
    public class User
    {
        public int UserId { get; set; }
        public String UserName{ get; set; }
        public List<Question> Questions { get; set; }
        public List<Answer> Answers { get; set; } 
    }


    public class Question
    {
     
        public int QuestionId { get; set; }
        public String Text{ get; set; }

        public int UserId { get; set; }

        public User User { get; set; }
        public List<Answer> Answers { get; set; }
    }

    public class Answer
    {
        public int AnswerId { get; set; }
        public String Text { get; set; }

        public int UserId { get; set; }
        public User User { get; set; }
   
        public int QuestionId { get; set; }
        public Question Question { get; set; }
    }
}